package com.jinke.api.modules.app.request;

import com.jinke.api.modules.app.enums.QueryTimeType;
import com.jinke.api.modules.app.enums.QuestionStatus;
import com.jinke.api.modules.app.enums.QuestionType;
import com.jinke.api.modules.base.request.BasePageListRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
public class QuestionQueryRequest extends BasePageListRequest {


    private QuestionType type;

    @ApiModelProperty("主题")
    private String title;
    @ApiModelProperty("(1, \"处理中\"),\n" +
            "(2, \"已关闭\"),\n" +
            "(3, \"已取消\"),")
    private QuestionStatus status;
    @ApiModelProperty("开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime beginTime;
    @ApiModelProperty("结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;
    @ApiModelProperty("忽略")
    private Integer userId;
    @ApiModelProperty("时间类型  (1, \"开始时间\"),\n" +
            " (2, \"更新时间\"),")
    private QueryTimeType queryTimeType;
    @ApiModelProperty("工单号")
    private String orderNo;
}
